package com.queming.core.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author chencidiao
 * @date 2022/04/28 13:00
 **/
@Data
public class TokenRequest {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 64, message = "用户名长度在4个字符至64个字符之间")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 4, max = 64, message = "密码长度在4个字符至64个字符之间")
    private String password;
}
